projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a2f56d
)
Make erc expand the final abbrev
author
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 16 Oct 2020 15:36:20 +0000
(17:36 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Fri, 16 Oct 2020 15:36:26 +0000
(17:36 +0200)
* lisp/erc/erc.el (erc-send-current-line): Expand abbrevs at the
end of lines (bug#42854).
lisp/erc/erc.el
patch
|
blob
|
history
diff --git
a/lisp/erc/erc.el
b/lisp/erc/erc.el
index 1d5506e2816731b7c76e6b670310a77e1dbc48e9..6481446ba5e1f5040280f57f287cf6b3ef2aec16 100644
(file)
--- a/
lisp/erc/erc.el
+++ b/
lisp/erc/erc.el
@@
-5472,6
+5472,10
@@
submitted line to be intentional."
(time-less-p erc-accidental-paste-threshold-seconds
(time-subtract now erc-last-input-time)))
(save-restriction
+ ;; If there's an abbrev at the end of the line, expand it.
+ (when (and abbrev-mode
+ (eolp))
+ (expand-abbrev))
(widen)
(if (< (point) (erc-beg-of-input-line))
(erc-error "Point is not in the input area")